projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd11871
)
(Buffer-menu-mouse-select): Handle dedicated window.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 23 May 1994 08:23:03 +0000
(08:23 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 23 May 1994 08:23:03 +0000
(08:23 +0000)
lisp/buff-menu.el
patch
|
blob
|
history
diff --git
a/lisp/buff-menu.el
b/lisp/buff-menu.el
index 3c55bdb4d3cd9a2b823886d746f9057d12b4ed25..a2f67bf59f359db688a49fff908a66a45d31ec85 100644
(file)
--- a/
lisp/buff-menu.el
+++ b/
lisp/buff-menu.el
@@
-346,7
+346,10
@@
You can mark buffers with the \\<Buffer-menu-mode-map>\\[Buffer-menu-mark] comma
(goto-char (posn-point (event-end event)))
(setq buffer (Buffer-menu-buffer t))))
(select-window (posn-window (event-end event)))
- (switch-to-buffer buffer)))
+ (if (and (window-dedicated-p (selected-window))
+ (eq (selected-window) (frame-root-window)))
+ (switch-to-buffer-other-frame buffer)
+ (switch-to-buffer buffer))))
(defun Buffer-menu-this-window ()
"Select this line's buffer in this window."